package com.usf.jprovider.object.type;

import java.text.DecimalFormat;

public class JInteger extends JType<Integer> {

	public JInteger() {
		super();
		value = 0;
	}
	public JInteger(Integer value, String format) {
		super(value, format);
	}
	public JInteger(String value, String format) throws Exception {
		super(value, format);
	}
	
	@Override
	protected Integer parse(String value, String format) {
		return Integer.parseInt(value);
	}
	@Override
	protected String format(String format) {
		return new DecimalFormat(format).format(value);
	}
}
